#ifndef _FloatText_h__
#define _FloatText_h__

#include "cocos2d.h"
#include "cocos-ext.h"
USING_NS_CC_EXT;
using namespace cocos2d;

class FloatText : public CCLayer
{
private:
	CCLabelTTF* mDesc;
	CCScale9Sprite* mBg;

	static FloatText* ms_Singleton;
protected:
public:
	FloatText();
	~FloatText();

	virtual bool init();

	CREATE_FUNC(FloatText)
	void playAnim(const char* content);
	void playAnimComplete();

	static FloatText* getSingletonPtr();
};
#endif // _FloatText_h__